# 二进制文件

file_path = 'E:\\Python程序设计\\rg-2301\\teacher\\第八讲\\0.png'

with open(file_path, 'rb') as f:        # 读取二进制文件，使用 rb 模式
    by = f.read()

print(len(by))


file_path_w = 'E:\\Python程序设计\\rg-2301\\teacher\\第八讲\\1.png'
with open(file_path_w, 'wb') as wf:
    wf.write(by)

print('程序结束')
